package TomcatRelated;

import java.util.Vector;


public interface TomcatProtocol 
{

	//this method should send the received information to the application server.
	//the message format would be: "android_id=abcd&google_account=abcd&c2dm_register_id=12ab" - but we have 
	//http parser anyway 
	public String register(String android_id, String google_account, String c2dm_register_id);

	//this method should unregister a device from the application server
	public String unregister(String android_id);
	
	//this method is used to send another user a text message
	public String sendTextMessage(String my_android_id, String to_android_id, String message);
	
	//this method is used to pull the message waiting in the server, into current device
	public String recieveTextMessage(String my_android_id, String message_id);
	
	//sends the server the current position of this device
	public String updatePosition(String my_android_id, double x, double y);
	
	//requests from the server the current position of any users in the area between (x1,y1)(Top left)
	//and (x2,y2)(bottom right)
	public Vector<UserProfile> getUsersPosition(double x1, double y1, double x2, double y2);

	//requests from the server the details of the user that has the deviceId
	public UserProfile getUserProfile(String deviceId);   
	
}




